home *** CD-ROM | disk | FTP | other *** search
/ Chip 2000 November / Chip Kasım 2000.iso / prog / basic / 09 / AXA2.CAB / DAJAVA.CAB / com / ms / dxmedia / Point2Bvr.class (.txt) < prev    next >
Encoding:
Java Class File  |  1997-10-14  |  1.7 KB  |  78 lines

  1. package com.ms.dxmedia;
  2.  
  3. import com.ms.com.ComFailException;
  4. import com.ms.dxmedia.rawcom.DAPoint2;
  5. import com.ms.dxmedia.rawcom.IDABehavior;
  6. import com.ms.dxmedia.rawcom.IDAPoint2;
  7.  
  8. public class Point2Bvr extends Behavior {
  9.    private IDAPoint2 _COMptr;
  10.  
  11.    public NumberBvr getX() {
  12.       try {
  13.          return new NumberBvr(this.getCOMPtr().getX());
  14.       } catch (ComFailException var3) {
  15.          throw StaticsBase.handleError(var3);
  16.       }
  17.    }
  18.  
  19.    public void setCOMBvr(IDABehavior var1) {
  20.       super.setCOMBvr(var1);
  21.       this._COMptr = (IDAPoint2)var1;
  22.    }
  23.  
  24.    public static Point2Bvr newUninitBvr() {
  25.       return new Point2Bvr(new DAPoint2());
  26.    }
  27.  
  28.    public Point2Bvr(IDAPoint2 var1) {
  29.       super(var1);
  30.       this._COMptr = var1;
  31.    }
  32.  
  33.    public Point2Bvr() {
  34.       super((IDABehavior)null);
  35.       this._COMptr = null;
  36.    }
  37.  
  38.    protected Behavior newUninitBehavior() {
  39.       return newUninitBvr();
  40.    }
  41.  
  42.    public NumberBvr getPolarCoordAngle() {
  43.       try {
  44.          return new NumberBvr(this.getCOMPtr().getPolarCoordAngle());
  45.       } catch (ComFailException var3) {
  46.          throw StaticsBase.handleError(var3);
  47.       }
  48.    }
  49.  
  50.    public NumberBvr getY() {
  51.       try {
  52.          return new NumberBvr(this.getCOMPtr().getY());
  53.       } catch (ComFailException var3) {
  54.          throw StaticsBase.handleError(var3);
  55.       }
  56.    }
  57.  
  58.    public IDAPoint2 getCOMPtr() {
  59.       return this._COMptr;
  60.    }
  61.  
  62.    public Point2Bvr transform(Transform2Bvr var1) {
  63.       try {
  64.          return new Point2Bvr(this.getCOMPtr().Transform(var1.getCOMPtr()));
  65.       } catch (ComFailException var4) {
  66.          throw StaticsBase.handleError(var4);
  67.       }
  68.    }
  69.  
  70.    public NumberBvr getPolarCoordLength() {
  71.       try {
  72.          return new NumberBvr(this.getCOMPtr().getPolarCoordLength());
  73.       } catch (ComFailException var3) {
  74.          throw StaticsBase.handleError(var3);
  75.       }
  76.    }
  77. }
  78.